local CommonOHOH = _G.CommonOHOH;
---准备控制器
local M = CommonOHOH.class.new(script, CommonOHOH.files.BaseComponent(),script.Parent.Name.."_base");

local IsClient = game:GetService("RunService"):IsClient();

local FightingFolder=Instance.new("Folder",workspace)
if IsClient then
    FightingFolder.Name="chrisitmas_client_fighting"
else
    FightingFolder.Name="chrisitmas_server_fighting"
end

function M.new(self,...)
	return M(self,...);
end;

function M.ctor(self, parent)
	M.super.ctor(self, parent);	

  self.BattleInst=CommonOHOH:GetPath_Loop("Battle.activity.Christmas",game.Workspace)
  self.ChrisitmasReady=require(script.Parent.ChrisitmasReady).new(self.BattleInst)
   
end;

--获取天空盒
function M.GetSkyFolder(self)
   return  self.BattleInst.Sky
end

function M.dtor(self)
    self.Battle:dtor()
	M.super.dtor(self);
end;


--获取结束战斗，初始化玩家位置
function M.GetExitBattleCFrame(self,bid)
  return    self.Battle:GetExitCFrame()
end



return M